package test;

import javax.swing.table.DefaultTableModel;

public class MyTableModel extends DefaultTableModel implements TableModelEx {

	public MyTableModel(int rowCount, int columnCount) {
		super(rowCount, columnCount);
	}

	private static final long serialVersionUID = 9183034216845288140L;

	public Object[] getCandidatesAt(int row, int column) {
		int n = row + column;
		Object[] result = new Object[n];
		for (int i = 0; i < n; ++i) {
			result[i] = String.valueOf(i);
		}
		return result;
	}
}
